package com.weipai.education.dao;

import com.weipai.education.model.Exchange;
import com.weipai.education.model.ExchangeDetail;
import org.omg.CORBA.Object;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2018/12/17 17:26
 */
public interface ExchangeDao {
    
    int save(Exchange exchange);

    List<Map<String,Object>> list(Integer start, Integer size, String startTime, String endTime, String orderType, String userId, String orderNumber);

    Integer listAmount(String startTime, String endTime, String orderType, String userId, String orderNumber);

    Exchange selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Exchange exchange);

    List<Map<String,Object>> exchangeInfo(String id);

    void insertExchangeDetail(ExchangeDetail exchangeDetail);

    /**
     * 根据换货单号搜换货记录
     */
    Exchange selectExchangeByExchangeNumber(String exchangeNumber);

    /**
     * 根据换货单号获取换货单详情
     */
    List<Map<String, java.lang.Object>> getExchangeDetail(String exchangeNumber);
}
